$(function() {

    $.ajax(baseUrl + '/categories', {
        success: function(res) {
            console.log('分类列表', res);
            const newHtml = template('allCategory', { categoryList: res });
            console.log(newHtml);
            $('.allCategoryInfo').html(newHtml);
            // const newHtml = template('swipe-id', { swipeList: res, baseUrl: baseUrl })
            // $('.sliderUl').html(newHtml);

        },
        error: function(err) {
            console.log('err:', err);
        }
    })
})